package com.heihei.mymusic.controller;


import com.heihei.mymusic.dto.CommonResponseDTO;
import com.heihei.mymusic.entity.MyMusic;
import com.heihei.mymusic.service.MyMusicService;
import com.heihei.mymusic.vo.MyMusicPageVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author duanhengfei
 * @since 2020-12-11
 */
@RestController
@RequestMapping("/my-music")
public class MyMusicController {
    @Resource
    private MyMusicService myMusicService;

    //查询全部，分页
    @GetMapping("/page")
    public CommonResponseDTO<MyMusicPageVo<MyMusic>> listConditionalPage(MyMusicPageVo<MyMusic> pageParam){
        return myMusicService.listConditionalPage(pageParam);
    }
}
